package org.example.studentsystem_back.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.studentsystem_back.domain.Leaders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author 马鑫
* @description 针对表【leaders】的数据库操作Mapper
* @createDate 2024-07-10 13:50:19
* @Entity org.example.studentsystem_back.domain.Leaders
*/
@Mapper
public interface LeadersMapper extends BaseMapper<Leaders> {

    @Select("SELECT * FROM leaders LIMIT ${limit} OFFSET ${page};")
   List<Leaders> getLeadersByPage(int limit, int page);
}




